package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.entity.Selection;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface SelectionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Selection record);

    int insertSelective(Selection record);

    Selection selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Selection record);

    int updateByPrimaryKey(Selection record);

    List<Selection> findAllBySelectionApplyId(@Param("selectionApplyId") Long selectionApplyId);

    int deleteBySelectionApplyId(@Param("selectionApplyId") Long selectionApplyId);

    List<Selection> findAllPage(PageReq req);

    int batchInsert(List<Selection> record);
}